import Vue from 'vue'
import App from './App.vue'
import router from './router'

import axios from "axios";
import qs from "qs";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 设置原型 this.$http.post
Vue.prototype.$http = axios;
// 设置默认的路径为后台服务器的ip和端口
Vue.prototype.$http.defaults.baseURL = "http://localhost:8111";
// 设置qs原型
Vue.prototype.$qs = qs;
Vue.use(ElementUI);

Vue.config.productionTip = false

new Vue({
  router,
  render: function (h) { return h(App) }
}).$mount('#app')
